home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
misc_pto
/
mwpetz06
/
digclock.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-12
|
584b
|
27 lines
#include "zapp.hpp"
#include <time.h>
#define YEAR (datetime->tm_year % 100)
#define MONTH (datetime->tm_mon + 1)
#define MDAY (datetime->tm_mday)
#define WDAY (datetime->tm_wday)
#define HOUR (datetime->tm_hour)
#define MIN (datetime->tm_min)
#define SEC (datetime->tm_sec)
class clockPane:public TextPane {
TimerPtr tim;
char sDate[2],sTime[2],sAMPM[2][5];
int iDate,iTime ;
public:
clockPane(Window*);
~clockPane();
void tick();
};
class MainFrame:public AppFrame {
clockPane *p;
public:
MainFrame();
~MainFrame() { delete p; };
};